3.277 \(\int \frac {-1+\sqrt [3]{x}}{1+\sqrt [3]{x}} \, dx\)

Optimal. Leaf size=26 \[ -3 x^{2/3}+x+6 \sqrt [3]{x}-6 \log \left (\sqrt [3]{x}+1\right ) \]

[Out]

6*x^(1/3)-3*x^(2/3)+x-6*ln(x^(1/3)+1)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {376, 77} \[ -3 x^{2/3}+x+6 \sqrt [3]{x}-6 \log \left (\sqrt [3]{x}+1\right ) \]

Antiderivative was successfully verified.

[In]

Int[(-1 + x^(1/3))/(1 + x^(1/3)),x]

[Out]

6*x^(1/3) - 3*x^(2/3) + x - 6*Log[1 + x^(1/3)]

Rule 77

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rule 376

Int[((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> With[{g = Denominator[n]}, Dis
t[g, Subst[Int[x^(g - 1)*(a + b*x^(g*n))^p*(c + d*x^(g*n))^q, x], x, x^(1/g)], x]] /; FreeQ[{a, b, c, d, p, q}
, x] && NeQ[b*c - a*d, 0] && FractionQ[n]

Rubi steps

\begin {align*} \int \frac {-1+\sqrt [3]{x}}{1+\sqrt [3]{x}} \, dx &=3 \operatorname {Subst}\left (\int \frac {(-1+x) x^2}{1+x} \, dx,x,\sqrt [3]{x}\right )\\ &=3 \operatorname {Subst}\left (\int \left (2-2 x+x^2-\frac {2}{1+x}\right ) \, dx,x,\sqrt [3]{x}\right )\\ &=6 \sqrt [3]{x}-3 x^{2/3}+x-6 \log \left (1+\sqrt [3]{x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 26, normalized size = 1.00 \[ -3 x^{2/3}+x+6 \sqrt [3]{x}-6 \log \left (\sqrt [3]{x}+1\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(-1 + x^(1/3))/(1 + x^(1/3)),x]

[Out]

6*x^(1/3) - 3*x^(2/3) + x - 6*Log[1 + x^(1/3)]

________________________________________________________________________________________

fricas [A]  time = 0.91, size = 20, normalized size = 0.77 \[ x - 3 \, x^{\frac {2}{3}} + 6 \, x^{\frac {1}{3}} - 6 \, \log \left (x^{\frac {1}{3}} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+x^(1/3))/(1+x^(1/3)),x, algorithm="fricas")

[Out]

x - 3*x^(2/3) + 6*x^(1/3) - 6*log(x^(1/3) + 1)

________________________________________________________________________________________

giac [A]  time = 0.20, size = 20, normalized size = 0.77 \[ x - 3 \, x^{\frac {2}{3}} + 6 \, x^{\frac {1}{3}} - 6 \, \log \left (x^{\frac {1}{3}} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+x^(1/3))/(1+x^(1/3)),x, algorithm="giac")

[Out]

x - 3*x^(2/3) + 6*x^(1/3) - 6*log(x^(1/3) + 1)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 21, normalized size = 0.81 \[ x -6 \ln \left (x^{\frac {1}{3}}+1\right )-3 x^{\frac {2}{3}}+6 x^{\frac {1}{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^(1/3)-1)/(x^(1/3)+1),x)

[Out]

6*x^(1/3)-3*x^(2/3)+x-6*ln(x^(1/3)+1)

________________________________________________________________________________________

maxima [A]  time = 0.55, size = 20, normalized size = 0.77 \[ x - 3 \, x^{\frac {2}{3}} + 6 \, x^{\frac {1}{3}} - 6 \, \log \left (x^{\frac {1}{3}} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+x^(1/3))/(1+x^(1/3)),x, algorithm="maxima")

[Out]

x - 3*x^(2/3) + 6*x^(1/3) - 6*log(x^(1/3) + 1)

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 20, normalized size = 0.77 \[ x-6\,\ln \left (x^{1/3}+1\right )+6\,x^{1/3}-3\,x^{2/3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^(1/3) - 1)/(x^(1/3) + 1),x)

[Out]

x - 6*log(x^(1/3) + 1) + 6*x^(1/3) - 3*x^(2/3)

________________________________________________________________________________________

sympy [A]  time = 0.20, size = 24, normalized size = 0.92 \[ - 3 x^{\frac {2}{3}} + 6 \sqrt [3]{x} + x - 6 \log {\left (\sqrt [3]{x} + 1 \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-1+x**(1/3))/(1+x**(1/3)),x)

[Out]

-3*x**(2/3) + 6*x**(1/3) + x - 6*log(x**(1/3) + 1)

________________________________________________________________________________________